home *** CD-ROM | disk | FTP | other *** search
- 61
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- RunProgram
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baRunProgram runs an external application and can optionally wait until the other
- --- RECORDSEPARATOR ---
- program quits before continuing.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baRunProgram( Program , State, Wait )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String, Integer.
- --- RECORDSEPARATOR ---
- Program is the name of the program to run.
- --- RECORDSEPARATOR ---
- State is how the program is to appear. Can be one of the following:
- --- RECORDSEPARATOR ---
- Can be one of these:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "Normal"
- --- RECORDSEPARATOR ---
- shows in its usual state.
- --- RECORDSEPARATOR ---
- "Hidden"
- --- RECORDSEPARATOR ---
- is not visible.
- --- RECORDSEPARATOR ---
- "Maximised"
- --- RECORDSEPARATOR ---
- shows as a maximised window.
- --- RECORDSEPARATOR ---
- "Minimised"
- --- RECORDSEPARATOR ---
- shows as an minimised icon.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The State argument is ignored,
- --- RECORDSEPARATOR ---
- Wait determines whether the Director or Authorware program continues, or if it
- --- RECORDSEPARATOR ---
- waits for the external program to finish before continuing. Can be either true or
- --- RECORDSEPARATOR ---
- false.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- If successful returns a meaningless number greater than 31.
- --- RECORDSEPARATOR ---
- If the return is less than 32, then an error occurred. On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , some possible
- --- RECORDSEPARATOR ---
- error numbers are listed here.
- --- RECORDSEPARATOR ---
- 0
- --- RECORDSEPARATOR ---
- System was out of memory, executable file was corrupt, or relocations were invalid.
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- Unspecified error.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- File was not found.
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Path was not found.
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- Attempt was made to dynamically link to a task, or there was a sharing or network-protection
- --- RECORDSEPARATOR ---
- error.
- --- RECORDSEPARATOR ---
- 6
- --- RECORDSEPARATOR ---
- Library required separate data segments for each task.
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- There was insufficient memory to start the application.
- --- RECORDSEPARATOR ---
- 10
- --- RECORDSEPARATOR ---
- Windows version was incorrect.
- --- RECORDSEPARATOR ---
- 11
- --- RECORDSEPARATOR ---
- Executable file was invalid. Either it was not a Windows application or there was an error in
- --- RECORDSEPARATOR ---
- the .EXE image.
- --- RECORDSEPARATOR ---
- 12
- --- RECORDSEPARATOR ---
- Application was designed for a different operating system.
- --- RECORDSEPARATOR ---
- 13
- --- RECORDSEPARATOR ---
- Application was designed for MS-DOS 4.0.
- --- RECORDSEPARATOR ---
- 14
- --- RECORDSEPARATOR ---
- Type of executable file was unknown.
- --- RECORDSEPARATOR ---
- 15
- --- RECORDSEPARATOR ---
- Attempt was made to load a real
- --- RECORDSEPARATOR ---
- -mode application (developed for an earlier version of
- --- RECORDSEPARATOR ---
- Windows).
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- Attempt was made to load a second instance of an executable file containing multiple data
- --- RECORDSEPARATOR ---
- segments that were not marked read-only.
- --- RECORDSEPARATOR ---
- 19
- --- RECORDSEPARATOR ---
- Attempt was made to load a compressed executable file. The file must be decompressed
- --- RECORDSEPARATOR ---
- before it can be loaded.
- --- RECORDSEPARATOR ---
- 20
- --- RECORDSEPARATOR ---
- Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application
- --- RECORDSEPARATOR ---
- was corrupt.
- --- RECORDSEPARATOR ---
- 21
- --- RECORDSEPARATOR ---
- Application requires 32-bit extensions.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , an error always returns 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baRunProgram( "Notepad.exe", "maximised", false )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baRunProgram( "Notepad.exe", "maximised", false )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- (continued next page)